Contents
Idea
The circle type is an axiomatization of the homotopy type of the (shape of) the circle in the context of homotopy type theory.
Definition
There are two ways to define the circle type: one can define it in terms of explicit inference rules, or one can use the notion of higher inductive type. We will discuss both formulations.
With inference rules
Let denote the identification type between elements and of type , and let denote the heterogeneous identification type between elements and of type family , given elements and and identification . Let denote the dependent function application of the dependent function to the identification
In the natural deduction formulation of dependent type theory, the circle type is given by the following inference rules:
First the rule that defines the circle type itself in some context .
type formation
Now the basic “introduction” rule, which says that the circle type consists of a base point and a loop identification .
term introduction:
Induction principle
There are different induction principles associated with the circle type, depending on whether judgmental equalities or identifications are used; if the former are used, this results in strict circle types, and if the latter are used, this results in weak circle types.
The induction principle for strict circle types states that if:
-
For all we have a type
-
For any term and any heterogeneous identification that is equal to itself across
then we have a dependent function such that evaluating at results in and applying across results in .
The induction principle for weak circle types states that if:
-
For all we have a type
-
For any term and any heterogeneous identification that is equal to itself across
there exists a dependent function and an identification such that applying across is equal to across .
These are both formalized via the elimination and computation rules for the circle type:
Elimination rules for the circle type:
Computation rules for the strict circle type
- Judgmental path constructors
- Propositional path constructors
Computation rules for the weak circle type
For weak circle types, we can package the elimination and propositional computation rules together using dependent sum types to get a single rule for the induction principle of the circle type:
Since the circle type is a positive type, it is not necessary to include a uniqueness rule for the induction principle circle types, since the propositional uniqueness rule can be proven from the the other inference rules for the circle type. Nevertheless, one can include the uniqueness rule in the combined single induction rule by turning the dependent sum type into a uniqueness quantifier, resulting in the dependent universal property of the circle type.
Recursion principle
In general, given a type , by the weakening rule of dependent type theory, one can form the constant type family indexed by ; then one can get the recursion principle of the circle type from the induction principle on regarded as a constant type family:
The recursion principle for strict circle types states that if:
-
We have a type
-
For any term and any identification that is equal to itself
then we have a function such that evaluating at results in and applying across results in .
The recursion principle for weak circle types states that if:
-
We have a type
-
For any term and any identification that is equal to itself
there exists a function and an identification such that applying across is equal to across .
The recursion principle for weak circle types can be presented as a single rule via the use of a dependent sum type:
and similarly, the (non-dependent) universal property of the circle type is presented as a single rule by replacing the dependent sum type in the recursion principle with a uniqueness quantifier
In terms of higher inductive types
As a higher inductive type, the circle is given by
Inductive Circle : Type
| base : Circle
| loop : Id Circle base base
This says that the type is inductively constructed from
-
a term of circle type whose interpretation is as the base point of the circle,
-
a term of the identification type between these two terms, whose interpretation is as the 1-cell of the circle
Hence as a non-constant path from the base point to itself.
Properties
Relation to axiom K
Theorem
Suppose that the strict circle type has an identification . Then every type is a set.
Proof
For all types , terms , and self-identifications , by the recursion principle of the strict circle type, we have the function such that and . We also have by definition of that
By applying to , we have identification
which reduces down to
which is precisely axiom K for type . Thus every type is a set.
Theorem
Suppose that the loop of the circle is judgmentally equal to reflexivity of the base of the circle . Then the judgmental K rule holds.
Proof
For all types , terms , and self-identifications , by the recursion principle of the strict circle type, we have the function such that and . We also have by definition of that
Since functions preserve judgmental equality, by applying the function to the judgmental equality , we have a judgmental equality
which reduces down to
which is precisely the judgmental K rule for type .
Types equivalent to the circle type
The circle type is equivalent to the following types
- Given a univalent universe , the type of -small -torsors. One can then prove that this type satisfies the same induction principle (propositionally). This is due to Dan Grayson.
Induction principle without heterogeneous identifications
There is a version of the induction principle which uses a type and a function instead of a type family indexed by . It has the benefit of not requiring that one has first defined heterogeneous identification types, whether as an inductive family of types or by using transport.
The induction principle of the circle type says that given a type and a function , as well as
-
an element
-
identifications and such that , , , and form a square
- an identification saying that the square commutes
one can construct
- a homotopy witnessing that is a section of :
such that
The last condition needs some explanation. Since is a section of , the composite is the identity function on the circle type, up to identification. Now, given any identity function on the circle type with homotopy
we have the following square for all , , and :
This square commutes via the J rule: it suffices to construct an element of
But reduces down to via
and similarly reduces down to , so just take reflexivity of .
So the naturality square is inductively defined by
When , , , , and , this results in the identification
which is of the same type as due to the judgmental equalities in the other computation rules.
One gets back the usual induction principle of the interval type when and the first projection function of the dependent sum type, and one gets back the recursion principle of the interval type when and the first projection function of the product type.
Extensionality principle of the circle type
The extensionality principle of the circle type says that there is an equivalence of types between the identification type and the type of integers :
Equivalently, that the loop space type is equivalent to the integers.
Thus, the extensionality principle of the circle type implies that the integers and thus the natural numbers are contractible types if axiom K or uniqueness of identity proofs hold for the entire type theory. If the extensionality principle of the natural numbers also hold in the type theory, then every type is contractible.
One can prove the extensionality principle of the circle type, given a univalent universe where the circle is small relative to the universe. The HoTT book provides a number of such proofs.
If one doesn’t have a type of integers or a type universe, then the extensionality principle of the circle type says that the identity types satisfy the dependent universal property of the integers type with respect to the element and the equivalence
This is a special case of the extensionality principle of coequalizer types and pushout types as detailed in Kraus and Raumer (2019).
The circle type and infinity
The extensionality principle of the circle type says that the loop space of the circle at its base point is a denumerable set. However, there is a weaker axiom that one can add to the circle type: that is an infinite type.
By the recursion principle of the natural numbers, there is a function
which takes zero to reflexivity of and the successor function to concatenation of a self-identification by . That is an infinite set, states that the above function is an embedding of types,
or equivalently that application of the above function is an equivalence for all natural numbers ,
If one doesn’t have a natural numbers type, the loop space of the circle type at its base point is an infinite set if and only if is equivalent to the sum type .
See Rasekh 21 for proving this statement in the presence of the univalence axiom.
Kuratowski-finiteness
The circle type is Kuratowski-finite. (Cf Frumin et al. 18)
H-space structures on the circle type
The type of H-spaces on the circle type is a contractible type.
References
The formalization of the shape homotopy type of the circle as a higher inductive type in homotopy type theory, along with a proof that (and hence ):
Formalization in proof assistants:
in Coq:
in Agda:
Exposition and review:
Alternative construction of the circle type as the type of -torsors:
Alternative construction of the circle type as a coequalizer:
For the fact that the type of H-space structures on a circle type is contractible:
For the fact that the circle type is Kuratowski-finite:
For the fact that one can construct a natural numbers type from the circle type:
For the induction principle of the identity types of the circle type: